name		IntHeliS
health		300
type		enemy
nomove		1 1
lifespan	11
nopain		1
cantgrab	1
nodrop		2
subject_to_gravity 0
animationscript data/scripts/enemy.c
load		Cobra_Officer2
load		Viper2


anim spawn
	delay	1
        offset  380 145
	sound   data/sounds/heli1.wav
	frame	data/chars/destro_heli/intheli
	delay	150
        @cmd	dasher 1 0 0
	frame	data/chars/destro_heli/intheli
        @cmd	spawn01 "Viper2" 80 40 3
	frame	data/chars/destro_heli/intheli

anim idle
	loop	1
	delay	10
        offset  380 145
	frame	data/chars/destro_heli/intheli
	@cmd	attack0 "ANI_FOLLOW1"
	frame	data/chars/destro_heli/intheli

anim follow1
@script
    void self = getlocalvar("self");

    if( frame == 0){
      int r = rand()%30;

      if( r > 0){
        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW2"));
        updateframe(self, 1);
      }
    }
@end_script
	loop	1
	delay	1
        offset  380 145
	frame	data/chars/destro_heli/intheli
	delay	100
        @cmd	dasher 1 0 0
	sound   data/sounds/heli1.wav
	frame	data/chars/destro_heli/intheli
	delay	200
        @cmd	spawn01 "Viper2" 80 40 3
	frame	data/chars/destro_heli/intheli

anim follow2
@script
    void self = getlocalvar("self");

    if( frame == 0){
      int r = rand()%30;

      if( r > 0){
        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));
        updateframe(self, 1);
      }
    }
@end_script
	loop	1
	delay	1
        offset  380 145
	frame	data/chars/destro_heli/intheli
	delay	100
        @cmd	dasher 1 0 0
	sound   data/sounds/heli1.wav
	frame	data/chars/destro_heli/intheli
	delay	200
        @cmd	spawn01 "Cobra_Officer2" 80 40 3
	frame	data/chars/destro_heli/intheli

anim walk
	loop	1
	delay	100
        offset  380 145
	frame	data/chars/destro_heli/intheli
	frame	data/chars/destro_heli/intheli


anim pain
	delay	5
        offset  380 145
	frame	data/chars/destro_heli/intheli

anim fall
	delay	5
        offset  380 145
	frame	data/chars/destro_heli/intheli

anim rise
	delay	5
        offset  380 145
	frame	data/chars/destro_heli/intheli
